package resolver

// This file will be automatically regenerated based on the schema, any resolver implementations
// will be copied through when generating and any unknown code will be moved to the end.

import (
	"context"
	"gqlt2/graph/model"

	"github.com/dgryski/trifles/uuid"
)

func (r *queryResolver) DynamicSupervisionList(ctx context.Context, query *model.DynamicSupervisionListQuery) ([]*model.DynamicSupervision, error) {
	c := 10
	f := 0.2
	return []*model.DynamicSupervision{
		&model.DynamicSupervision{
			SupervisionID:        uuid.UUIDv4(),
			SpotCheckTotalNumber: &c,
			SpotCheckNumber:      &c,
			SpotCheckRatio:       &f,
			ExceptionNumber:      &c,
			DealNumber:           &c,
			DealRatio:            &f,
			Year:                 &c,
			Month:                &c,
			Day:                  &c,
		},
	}, nil
}
